package com.unicom.office.parser;

import com.unicom.office.node.OfficeNode;
import com.unicom.office.node.PictureNode;
import com.unicom.office.node.TextRangeNode;
import org.w3c.dom.Text;

public class Token {
    private OfficeNode node;

    public Token(OfficeNode node){
        this.node = node;
    }

    public boolean isPicture() {
        return node instanceof PictureNode;
    }

    public char getChar(){
        return ((TextRangeNode)node).getText().charAt(0);
    }

    public OfficeNode getValue(){
        return node;
    }
}
